package com.itheima.test4;

public class Goods {
    private String id; // 商品id
    private String productName;// 商品名称
    private double price;// 商品价格

    private int count;// 商品库存

    // 定义构造方法
    public Goods() {

    }

    public Goods(String id, String productName, double price, int count) {
        this.id = id;
        this.productName = productName;
        this.price = price;
        this.count = count;
    }
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

}
